const autoprefixer = require('autoprefixer');
const pxtorem = require('postcss-pxtorem');
var fs = require('fs');

module.exports = {
  outputDir: 'dist',
  indexPath: 'test.html',
  publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          autoprefixer(),
          pxtorem({
            rootValue: 37.5,
			      selectorBlackList: ['van-circle__layer'],
            propList: ['*']
          })
        ]
      }
    }
  },
  devServer: {
    // 其他配置保持不动
    port: 8030,
    proxy: 'https://cms.dianxiaotong.net' // 设置代理
    // proxy: 'https://test2.dianxiaotong.net' // 设置代理
  }
};
